package com.xplay.xpocker.config;

import com.xplay.xpocker.room.message.MessageContent;
import org.springframework.context.ApplicationEvent;

public class MessageEvent extends ApplicationEvent {

    private final MessageContent message;

    public MessageEvent(Object source, MessageContent message) {
        super(source);
        this.message = message;
    }

    public MessageContent getMessage() {
        return message;
    }
}
